Conversation
✅ Deploy Preview for preact-signals-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
8e3c3a6 to
9553208
Compare
🦋 Changeset detectedLatest commit: 5401e5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
9553208 to
0a31ce9
Compare
|
|
||
| export function For<T>(props: ForProps<T>): JSX.Element | null { | ||
| useSignals(); | ||
| const cache = useMemo(() => new Map(), []); |
There was a problem hiding this comment.
We might need to switch this to a WeakMap when we see the first item being an object or leverage JSON.stringify on objects
0a31ce9 to
1134132
Compare
1134132 to
0df78b9
Compare
|
Size Change: 0 B Total Size: 84.2 kB ℹ️ View Unchanged
|
rschristian
left a comment
There was a problem hiding this comment.
I might've missed something but is there a particular reason we're offering these specifically and only for React?
|
@rschristian we will offer it for both but started out with React as the 2.0 release was pending |
a278750 to
d81f9e0
Compare
This adds some common utilities for leveraging JSX with signals, I tried to stay in line with how
solidprovides JSX utils.